#include "drve_led.h"
#include "drv_systick.h"
#include "drv_beep.h"
#include "drv_key.h"
#include "drv_exit.h"
#include "drv_usart.h"
#include "drv_time.h"
#include "drv_sht20.h"


static uint8_t key_status1=0;
static uint8_t key_status2=0;
static uint8_t key_status3=0;
static uint8_t key_statusu=0;
uint8_t dir1=0;
uint8_t dir2=0;
uint8_t dir3=0;
uint16_t fan_pwm1=0;
uint16_t fan_pwm2=0;
uint16_t fan_pwm3=0;
int main (void)
{    
	drv_systick_init(168);
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
	drve_led_int_u();
	drve_led_int1();
	drve_led_int2();
	drve_led_int3();
	drv_key_int_u();
	drv_key_int1();
	drv_key_int2();
	drv_key_int3();
	beep_init();
	drv_sht20_init();
	drv_sht20_rest();
	//drv__exit9_int();
	drv_usart6_init();
	//drv_time7_init();
	drv_time3_init();
	//beep_on();
   printf("HelloNIU\r\n");
	while(1)
	{ 
		drv_sht20_getdata();
		drv_systick_ms(1000);
	}


}



